<?php
if (!class_exists("go_sql")){
	include("/var/www/html/new/conf/le.je");
	$le=new go_sql();
	$le->connect();
}
include_once '/var/www/html/new/d/meituan/MT.class.php';
$meituan = new Meituan();
$txt=file_get_contents('php://input');
$meituan->logfile($txt,"payorder");
$arr = json_decode($txt,true); 
$PFT_Order_Pay = $meituan->PFT_Order_Pay($arr);

/*
$txt = '{
  "partnerId": 1055,
  "body": { 
    "bookOrderId": "pzp0730002",
    "mtUserId": "string",
    "partnerOrderId": "string",
    "partnerDealId": "113|2633|6045",
    "sellPrice": 5,
    "quantity": 5,
    "visitDate": "2015-07-31",
    "firstVisitor": {
      "name": "彭志萍",
      "pinyin": "string",
      "mobile": "15959110796",
      "address": "string",
      "postCode": "string",
      "email": "string",
      "credentials": "350321199108230123",
      "credentialsType": 0
    },
    "otherVisitor": [
      {
        "name": "string",
        "pinyin": "string",
        "mobile": "string",
        "address": "string",
        "postCode": "string",
        "email": "string",
        "credentials": "string",
        "credentialsType": 0
      }
    ],
    "paymentSerialno": "string",
    "mtOrderId": "string"
  }
}';
*/
?>